// 导入封装好的网络请求类工具
import request from '../../../../../utils/request';

//条件查询
export const FindCementsluryRealByCondition = (searchModel) =>{
    return request ({
        url : '/cementsluryReal/findCementsluryRealByCondition',
        method :'post',
        data: searchModel
    })
}


//分页查询
export const FindCementsluryReal = (wellname,current,size,condition) => {
    return request({
        url: `/cementsluryReal/findCementsluryRealByPage/${wellname}/${current}/${size}`,
        method: 'post',
        data:condition
        
    })
}


//添加新增

export const AddCementsluryReal = (form) =>{
    return request({
        url: '/cementsluryReal/cementsluryRealAdd',
        method:'post',
        data:form
    })
}

//保存编辑
export const EditOneCementsluryReal = (form) => {
    return request({
        url: '/cementsluryReal/cementsluryRealUpdate',
        method: 'put',
        data: form
    })
}
//删除/cementsluryReal/cementsluryRealDelete/{id}
export const DeleteCementsluryReal = (id) => {
    return request({
         url: `/cementsluryReal/cementsluryRealDelete/${id}`,
        method: 'delete'
    })
}